<div class="formulario" id="formularioDados<?=(isset($linha[0])) ? $linha[0] : '0'?>">
	<form onSubmit="return Usuario.validaCampos(<?=(isset($linha[0])) ? $linha[0] : '0'?>);" action="<?=site_url('admin/membros/salvar' . (isset($linha[0]) ? '/' . $linha[0] : ''))?>" method="POST">
		<?php if(isset($linha)):?>
			<input type="hidden" value="<?=$linha[0]?>" name="id" />
		<?php endif;?>
		<table class="tabelaForm">
			<tr>
				<td colspan="2">Nome:<br /> 
					<select class="inputForm" name="usuarioId">
						<?php 
							foreach($profissionais->all as $p):
						?>
								<option value="<?=$p->id?>" <?=(isset($linha) && $p->id == $linha[1]['id']) ? ' selected=selected' : ''?>><?=$p->nome . ' ' . $p->sobrenome?></option>
						<?php endforeach;?>
					</select>
				</td>
			</tr>
			<tr>
				<td>Função:<br /> <input class="inputForm validar<?=(isset($linha[0])) ? $linha[0] : '0'?>" type="text" value="<?=(isset($linha)) ? $linha[2] : '';?>" name="funcao" human="Função" /></td>
			</tr>
			<tr><td colspan="2" align="center"><input type="submit" class="bt" value="Salvar" style="width: auto; margin-top: 20px;" /></td></tr>
		</table>
	</form>
</div>